package com.khotyn.heresy.exception;

import org.springframework.web.servlet.ModelAndView;

import com.khotyn.heresy.bean.HeresyErrorMessage;

/**
 * IllegalServiceParamException is thrown when the param pass from controller to
 * service is invalid.
 * 
 * @author khotyn
 * 
 */
public class IllegalServiceParamException extends IllegalParamException {
	private static final long serialVersionUID = -6728574964315778770L;

	public IllegalServiceParamException(HeresyErrorMessage errorMessage) {
		super(errorMessage);
	}

	public IllegalServiceParamException(ModelAndView errorModel, HeresyErrorMessage errorMessage) {
		super(errorModel, errorMessage);
	}

	public IllegalServiceParamException(ModelAndView errorModel, String s) {
		super(errorModel, s);
	}

	public IllegalServiceParamException(ModelAndView errorModel, Throwable cause) {
		super(errorModel, cause);
	}

	public IllegalServiceParamException(ModelAndView errorModel, String message, Throwable cause) {
		super(errorModel, message, cause);
	}
}
